package com.cp.生命周期;

import org.springframework.context.annotation.Bean;

/**
 * @Auther: 代理仁
 * @Date: 2019/7/8 23:43
 * @Description: 生命周期第一种方法
 */
public class lifeCycleConfig1 {

    @Bean(initMethod = "init",destroyMethod = "destory")
    public Person getPerson(){
        return new Person();
    }
}
